﻿using Microsoft.CodeAnalysis;

namespace Beeflys.Generator
{
    sealed class ImplInterfaceWrap
    {
        public ImplInterfaceWrap(INamedTypeSymbol typeSymbol)
        {
            this.InterfaceSymbol = typeSymbol;
            
            var item = typeSymbol.ResolveNameExt();
            this.Namespace = item._namespace;
            this.InterfaceName = item.name;
        }

        public INamedTypeSymbol InterfaceSymbol { get; private set; }
        public string Namespace { get; }
        public string InterfaceName { get; }

        public string FullName
        {
            get { return $"{this.Namespace}.{this.InterfaceName}"; }
        }
    }
}